<template>
  <view class="page_content">
    <form-step :value="3"></form-step>
    <view class="business_title">积分设置</view>
    <view class="form_item">
      <view class="point_input_item">
        <view class="point_label">汽油积分</view>
        <view class="point_value">每
          <AtInput
            name='bankName'
            :value="gas_money"
            :border="false"
            type="digit"
            class="input_bd"
            @change="inputMoneyG"
          />元
          <view class="point_input_box"></view>
        </view>
        <view class="point_value">赠送
          <AtInput
            name='bankName'
            :value="gas_point"
            :border="false"
            type="digit"
            class="input_bd"
            @change="inputPointG"
          />分
          <view class="point_input_box2"></view>
        </view>
      </view>
      <view class="point_input_item">
        <view class="point_label">柴油积分</view>
        <view class="point_value">每
          <AtInput
            name='bankName'
            :value="diesel_money"
            :border="false"
            type="digit"
            class="input_bd"
            @change="inputMoneyD"
          />元
          <view class="point_input_box"></view>
        </view>
        <view class="point_value">赠送
          <AtInput
            name='bankName'
            :value="diesel_point"
            :border="false"
            type="digit"
            class="input_bd"
            @change="inputPointD"
          />分
          <view class="point_input_box2"></view>
        </view>
      </view>
    </view>
    <view class="next_button" @tap="next()">下一步</view>
  </view>
</template>

<script>
import './business.scss';
import Taro from '@tarojs/taro';
import UserAPI from "../../api/user.js"
import FormStep from "../../components/formStep"
import { uploadFile } from "../../utils/uploadFile"
export default {
  components: {
    FormStep
  },
  data() {
    return {
      gas_money: "",
      gas_point: "",
      diesel_money: "",
      diesel_point: "",
    }
  },
  mounted(){
  },
  methods: {
    inputMoneyG(val){
      this.gas_money = val;
    },
    inputPointG(val){
      this.gas_point = val;
    },
    inputMoneyD(val){
      this.diesel_money = val;
    },
    inputPointD(val){
      this.diesel_point = val;
    },
    next(){
      Taro.navigateTo({
        url: "business4"
      })
    }
  }
}
</script>
